package com.yocard.yxyd.ui.view;

import android.content.Context;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;

import com.yocard.yxyd.R;

/**
 * Created on 2019/4/4.
 */
public class SwitchView extends FrameLayout {
    public SwitchView(@NonNull Context context) {
        this(context,null);
    }

    public SwitchView(@NonNull Context context, @NonNull AttributeSet attrs) {
        this(context, attrs,0);
    }

    public SwitchView(@NonNull Context context, @NonNull AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        LayoutInflater.from(getContext()).inflate(R.layout.view_switch,this);
    }
}
